from rest_framework import serializers

from six_it.models import City


class CitySerializer(serializers.ModelSerializer):
    '''城市序列化器类'''

    class Meta:
        model = City
        fields = ('id', 'name', 'ishot')